<%@page import="java.util.*;"%>
<?xml version="1.0" encoding="utf-8" ?>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>boardmx</title>
<link href="../mxforum/css/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br/>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F6F6F6">
  <tr>
      <td width="75%">&nbsp;</td>
    <td width="25%"><a href="newpost?forumid=${forumid}">New Post</a></td>
  </tr>  
</table>
<br/>
<%
Collection threadlist = (Collection)request.getAttribute("threadlist");
%>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F6F6F6">
  <tr>
      <td>Item</td>
    <td>主题</td>
    <td>用户ID</td>
  </tr>
<%  
int row = 1;
%>  
<c:forEach var="list" items="${threadlist}">
 <%
 String bgcolor = "#F6F6F6";
 if (row++%2 != 1) {
   bgcolor = "#efefef";
 }
 %>
  <tr bgcolor="#f6f6f6">
    <td bgcolor="<%=bgcolor%>">${list.threadId}</td>
    <td bgcolor="<%=bgcolor%>"><a href="postlist?threadid=${list.threadId}">${list.title}</a></td>
    <td bgcolor="<%=bgcolor%>">${list.forumId}</td>
  </tr>
</c:forEach>  
</table>
</body>
</html>